﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/MainPage.master" AutoEventWireup="true" CodeFile="DeliveryFeesManage.aspx.cs" Inherits="Manage_DeliveryFeesManage" %>
<%@ Import Namespace="Shopping.Common" %>
<%@ Import Namespace="Shopping.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="Content" Runat="Server">
<script type="text/javascript" src="/Manage/Js/DeliveryFeesManage.js"></script>
<script type="text/javascript" src="/JsBase/AppHelper/AreaHelper.js"></script>

<script type="text/javascript">
   ModelOfDeliveryFee = <%=new DeliveryFees().ToJsonString() %>;
   SelectOptionOfDelivery = '<%=SelectOptionOfDelivery %>';
   SelectOptionOfProvince = '<%=SelectOptionOfProvince %>';
</script>
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td align="center"><img src="/Manage/Images/sousuo.gif" />快递方式：
      <select name="ddlDeliveryOfSearch" id="ddlDeliveryOfSearch" >
        <option value="">--不限--</option>
        <%=SelectOptionOfDelivery %>
      </select>
      所属省份：
      <select name="ddlProvinceIDOfSearch" id="ddlProvinceIDOfSearch" onchange="QueryCities(this.options[this.selectedIndex].value,'ddlCityIDOfSearch')">
          <option value="">--不限--</option>
          <%=SelectOptionOfProvince %>
        </select>
      所属城市：
      <select name="ddlCityIDOfSearch" id="ddlCityIDOfSearch" onchange="QueryAreas(this.options[this.selectedIndex].value,'ddlAreaOfSearch')">
        <option value="">--不限--</option>
        <%=SelectOptionOfCity%>
      </select>
      &nbsp;所属区域：
      <select name="ddlAreaOfSearch" id="ddlAreaOfSearch">
        <option value="">--不限--</option>
        <%=SelectOptionOfArea%>
      </select>
      &nbsp;&nbsp;
      <input name="btnSearch" type="button" id="btnSearch" value="执行搜索" class="btn2" onclick="GoToSearch();" />
      &nbsp;&nbsp; [ <a href="DeliveryFeesManage.aspx" class="red bold">查看全部</a> ]</td>
  </tr>
</table>


<br />
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table" align="center">
  <tr>
    <td colspan="11" align="left" class="HeadTitle">&gt;&gt;快递费管理</td>
  </tr>
  <tr class="TableHeadRow">
    <td width="60" align="center">序号</td>
    <td align="left">快递方式</td>
    <td align="center">所属省份</td>
    <td align="center">所属城市</td>
    <td align="center">所属区域</td>
    <td align="center">默认首重</td>
    <td align="center">首重费用</td>
    <td align="center">默认续重</td>
    <td align="center">续重费用</td>
    <td width="120" align="center">创建日期</td>
    <td width="150" align="center">管理 [<a onclick="Add();" href="javascript:void(0);" class="red">+添加快递费用</a>]</td>
  </tr>

  <%
      if (listOfData != null)
      {
          for (int i = 0; i < listOfData.Count; ++i)
          {
              DeliveryFeeInfo d = listOfData[i];
   %>
  <tr  onmouseover="this.style.backgroundColor='#F2F2F2';" onmouseout="this.style.backgroundColor='#FFFFFF';">
    <td align="center"><%=i+1 %>.</td>
    <td align="left"><a href="<%=Utility.GetNewUrl("DeliveryID", d.Fee.DeliveryID.ToString(), false)%>"  ><%=d.DeliveryName%></a></td>
    <td align="center"><a href="<%=Utility.GetNewUrl("ProvinceID",d.Province.ID.ToString(),false) %>"><%=d.Province.Name %></a></td>
    <td align="center"><a href="<%=Utility.GetNewUrl("ProvinceID",d.Province.ID.ToString(),"CityID",d.City.ID.ToString(),false) %>"><%=d.City.Name %></a></td>
    <td align="center"><a href="<%=Utility.GetNewUrl("ProvinceID",d.Province.ID.ToString(),"CityID",d.City.ID.ToString(),"AreaID",d.Fee.AreaID.ToString(),false) %>"><%=d.AreaName %></a></td>
    <td align="center"><%=d.Fee.FirstWeight%>g</td>
    <td align="center"><%=d.Fee.FirstWeightFee%></td>
    <td align="center"><%=d.Fee.PerWeight%>g</td>
    <td align="center"><%=d.Fee.PerWeightFee%></td>
    <td align="center"><%=d.Fee.CreateDate.ToString("yyyy-MM-dd HH:mm:ss")%></td>
    <td align="center">[ <a href="javascript:void(0);" onclick="Edit(<%=d.Fee.DeliveryFeesID %>);" >编辑</a> ][ <a href="javascript:void(0);" onclick="Delete(<%=d.Fee.DeliveryFeesID %>);" class="red">删除</a> ] </td>
  </tr>
   
   <%  }
        %>
        <tr>
    <td colspan="11" align="center">
    <span class="page" >
       <%=Utility.GetPageLine(Utility.GetWebPageUrlNoCurPage(),q.CurPage, q.PageSize,10,q.TotalCount)%>    
        </span>
    </td>
    </tr>
     <%
      }
      else
      { %>
  <tr>
    <td colspan="11" align="center">[ <span class="red bold">系统未找到任何快递费用信息!</span> ]</td>
    </tr>
    <% } %>
</table>

</asp:Content>

